var mongoose = require('mongoose');
materializedPlugin = require('mongoose-materialized');
Schema = mongoose.Schema;

// 定义一个普通的数据模型 
var CateSchema = new Schema({
    text:{type:String}
});
// 将数据模型应用分页插件
CateSchema.plugin(materializedPlugin);
module.exports = mongoose.model('Cate', CateSchema,'cate');